<?php
class DanhMucTaiSan extends Model{
    public function ton_tai_danh_muc($ma_danh_muc){
        $ma_danh_muc = strtoupper($ma_danh_muc);
        $where = "`ma_danh_muc` = '$ma_danh_muc'";
        $order = "";
        $data = "`danhmuctaisan_id`";
        $this->select(LT2N_PREFIX.'_danhmuctaisan', $where, $order, $data);
        if($this->numrow($this->getDt()) == 1 ){
            return true;
        } else {
            return false;
        }
    }
}
?>